<div class="mt20">
	网站名称：<input type="text" id="title"><br>
	网站链接：<input type="text" id="url"><br>
	<input type="button" value=" 保存 " id="saveBtn" class="btn">
</div>
<script type="text/javascript">
$(function(){
	$("#saveBtn").click(function(){
		var title = $("#title").val();
		if (title.length == 0) {
			alert("in if");
		} else {
			alert("in else ");
		}
	});
});
</script>